//
//  MPSearchResultTableViewCell.m
//  SearchPeople
//
//  Created by zk on 16/5/16.
//
//

#import "MPSearchResultTableViewCell.h"
#import <UIImageView+WebCache.h>

@implementation MPSearchResultTableViewCell

- (void)awakeFromNib
{
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
}

- (void)configWithData:(NSDictionary *)dic
{
    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@",dic[@"picture"]]];
    UIImage *image = [UIImage imageNamed:@"placeHolder"];
    [self.headerImageView sd_setImageWithURL:url placeholderImage:image];
    self.nameLabel.text = dic[@"name"];
    self.mobileLabel.text = dic[@"mobile"];
    self.plcaeLabel.text = dic[@"address"];
}

@end
